Skip to content

feat: add account deletion functionality with confirmation modal - #302

Open
directorfloo wants to merge 2 commits into
Hamplard-Hub:mainfrom
directorfloo:FrontendFeatureBuildAccountDeletionConfirmationFlow
Open

feat: add account deletion functionality with confirmation modal#302
directorfloo wants to merge 2 commits into
Hamplard-Hub:mainfrom
directorfloo:FrontendFeatureBuildAccountDeletionConfirmationFlow

Conversation

@directorfloo

Copy link
Copy Markdown

Closes #161

Account Deletion Confirmation Flow

Summary

Adds a safeguarded account deletion flow in dashboard settings. Users must acknowledge the consequences and confirm their identity with their current password before deletion.

Changes

  • Added a Delete Account button in the Settings danger zone.
  • Added a three-step deletion modal:
    1. Consequences warning and acknowledgment checkbox
    2. Current password confirmation
    3. Success message with a five-second redirect to the homepage
  • Added account deletion API support through usersApi.
  • Added account deletion handling to useAuthStore.
  • Clears authentication state after successful deletion.
  • Revokes enrolled course access through the account deletion request.

Acceptance Criteria

  • Three-step flow renders in the correct order.
  • Users cannot continue without checking “I understand”.
  • Password confirmation is required before deletion.
  • Successful deletion redirects to the homepage after five seconds.
  • Authentication state is cleared after deletion.

Testing

  • TypeScript/editor diagnostics pass for all changed files.
  • Automated tests and production build could not be run because dependencies were unavailable and npm install stalled.

@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@directorfloo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Frontend] Feature: Build Account Deletion Confirmation Flow

1 participant